package com.wangan.wanganpush.dao;


import com.wangan.wanganpush.model.Vehicle;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface VehicleDao extends JpaRepository<Vehicle,Integer>{

    @Query(value = "SELECT * from wangan_vehicle a where a.flag = ?1 limit 0,1000;", nativeQuery = true)
    List<Vehicle> findAllByFlag(int flag);
}
